package cn.edu.fzu.delivery.domain.entity;

import cn.edu.fzu.delivery.domain.enums.SexEnum;
import cn.edu.fzu.delivery.domain.enums.UserStatusEnum;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.Date;

/**
 * 顾客
 *
 * @author fangxin
 * @date 2022/11/2
 */
@Data
public class Customer {
    private Long           id;
    //邮箱
    private String         email;
    //密码
    @JSONField(serialize = false)
    private String         password;
    //姓名
    private String         name;
    //性别
    private SexEnum        sex;
    //出生日期
    private Date           birth;
    //手机号
    private String         phone;
    //照片
    private String         imageUrl;
    //状态
    private UserStatusEnum status;
    //创建时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date           createTime;
    //更新时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date           updateTime;
}
